package com.action;

import com.dao.ITabSalesdetailDao;
import com.dao.ITabThesecondinstallationcommissionDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabSalesdetail;
import com.po.TabThesecondinstallationcommission;

public class TabThesecondinstallationcommissionAction extends BaseAction implements ModelDriven<TabThesecondinstallationcommission>
{

	TabThesecondinstallationcommission form = new TabThesecondinstallationcommission();
	public TabThesecondinstallationcommission getModel(){
		return form;
	}
	private ITabThesecondinstallationcommissionDao tabThesecondinstallationcommissionDao;
	public void setTabThesecondinstallationcommissionDao(ITabThesecondinstallationcommissionDao tabThesecondinstallationcommissionDao){
		this.tabThesecondinstallationcommissionDao = tabThesecondinstallationcommissionDao;
	}

	public String findByList(){
		form.setPager_count(tabThesecondinstallationcommissionDao.findByCount(form));
		form.setTabtsiclist(tabThesecondinstallationcommissionDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabThesecondinstallationcommissionDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabThesecondinstallationcommissionDao.updateObject(form);
		return "update";
	}

	

}
